home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr48 / vdl020d.zip / VPIPES.DOC < prev    next >
Text File  |  1993-04-14  |  3KB  |  106 lines

  1. (*
  2.  
  3. ==========================================================================
  4.  
  5. Visionix Inter-process communication pipes Unit (VPIPES)
  6. Copyright 1991,1992 Visionix
  7. ALL RIGHTS RESERVED
  8.  
  9.  
  10. --------------------------------------------------------------------------
  11.  
  12. Revision history in reverse chronological order:
  13.  
  14. Initials  Date      Comment
  15. --------  --------  ------------------------------------------------------
  16.  
  17. jrt       11/21/92  Sync with beta 0.08
  18.  
  19.  
  20. jrt       09/01/92  First logged revision.
  21.  
  22.  
  23.  
  24. --------------------------------------------------------------------------
  25.  
  26. *)
  27.  
  28.  
  29.  
  30.  
  31. Unit VPipe;
  32.  
  33.  
  34. Uses
  35.  
  36.   VTypes,
  37.   VGEN;
  38.  
  39.  
  40. { Library Functions }
  41.  
  42. Function VPipeInit : TError;
  43.  
  44.   { This function will initalize the pipe unit.  This may involve }
  45.   { installing the pipe manager.                                  }
  46.  
  47.  
  48. { Pipe Creation and Deletion routines }
  49.  
  50.  
  51. Function VPipeNew(                Mode           : WORD;
  52.                                   PipeName       : ST80;
  53.                                   PipeProc       : Pointer;
  54.                                   PipeProcParam1 : LONGINT;
  55.                                   PipeProcParam2 : LONGINT;
  56.                                   PipeProcPtr1   : Pointer      ):THandle;
  57.  
  58.   { This function will create a new pipe.  The program that creates }
  59.   { a pipe is the "server" of the pipe.  The caller will specify    }
  60.   { a piper "server" procedure that is called whenever system       }
  61.   { events (like system shutdown) would effect the pipe, or when a  }
  62.   { pipe "client" makes a Read, Write, or signal request to the     }
  63.   { pipe.                                                           }
  64.  
  65.  
  66.  
  67. Function VPipeDispose(            PipeName       : ST80         ):TError;
  68.  
  69.   { This function will dispose of a previously created pipe.        }
  70.   {
  71.  
  72.  
  73. { Pipe I/O Functions }
  74.  
  75. Function VPipeExist(              PipeName       : ST80         ):BOOLEAN;
  76.  
  77. Function VPipeOpen(               Mode           : WORD;
  78.                                   PipeName       : ST80         ):THandle;
  79.  
  80.  
  81. Function VPipeRead(               PipeHandle     : THandle;
  82.                                   Count          : LONGINT;
  83.                                   Buff           : Pointer      ):TError;
  84.  
  85. Function VPipeWrite(              PipeHandle     : THandle;
  86.                                   Count          : LONGINT;
  87.                                   Buff           : Pointer      ):TError;
  88.  
  89. Function VPipeSignal(             PipeHandle     : THandle;
  90.                                   Signal         : LONGINT      ):TError;
  91.  
  92. Function VPipeClose(              PipeHandle     : THandle      ):THandle;
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. BEGIN
  103.  
  104.  
  105. END.
  106.